home *** CD-ROM | disk | FTP | other *** search
- Path: wilma.cnmw.com!news
- From: Paul Gibby <pgibby@cnmw.com>
- Newsgroups: comp.lang.c++
- Subject: Re: I need help please
- Date: Wed, 13 Mar 1996 15:20:12 -0800
- Organization: Cincinnati Microwave Inc
- Message-ID: <3147582C.6BEF@cnmw.com>
- References: <4i5hie$c51@cloner3.netcom.com>
- NNTP-Posting-Host: deadcow.is.cnmw.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- leonel wizel wrote:
- >
- >
- >
- > I am new to the c++ programming language. I need some help from
- > some of you that are already gurus in this programming language please.
- >
- > I need to write three programs and I don't have any idea how to
- > start.
- >
- > the programs are:
- >
- >
- > write a program using palindrome strings:
- >
- > (1)
- > I have to write a recursive function TESTPALINDROME that returns
- > "1" if the string stored in the array is palindrome, and "0" otherwise.
- >
- > I need some hints please.
- >
- > program No. (2)
- >
- > write a C++ program that inputs a numeric check amount and writes
- > the word equivalent of the amount. For example, the amount 112.43
- > should be written as
- >
- > ONE HUNDRED TWELVE AND 43/100
- >
- > program No. (3)
- >
- > write a c++ program that creates a class called RATIONAL for
- > performing arithmetic with fractions. I have to write a driver to test
- > my classes.
- >
- > I have to provide a constructor function that enables an object of
- > this class to be initialized when it is declared. The constructor
- > should contain default values in case no initializers are provided and
- > should store the fraction in reduced form (i.e., the fraction)
- >
- > 2/4
- >
- > should be stored in the object as 1 in the numerator and 2 in the
- > denominator). provide public members functions for each of the
- > following.
- >
- > addition, substraction, multiplication, division of two rational
- > numbers. result should be stored in reduced form.
- >
- > and then.
- >
- > printing rational numbers in the form a/b where a is the numerator
- > and b is the denominator.\
- >
- > printing rational numbers in floating point format.
- >
- > Please I need some help with these three programs. I do not know
- > how to start. I need some hints please.
- >
- > thank you for your cooperation
- >
- > Try asking one of your classmates. Good luck!
- --Paul
-